<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>HTML中嵌入js代码的第一种方式</title>
</head>
<body>
<input type="button" value="hello" onclick="window.alert('hello js')">
<input type="button" value="hello" onclick="window.alert('hello js');alert('hello zhangsan');alert('hello lisi')">
<!--window.可以省略-->
<input type="button" value="hello" onclick="alert('hello world');alert('hello China')">
</body>
</html>